package com.example.dto;

import com.example.model.dto.BaseDateDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.DefaultGroup;
import com.example.validator.group.UpdateGroup;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Data;

/**
 * 标签
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-29
 */
@Data
@Schema(description = "标签")
public class TagsDTO extends BaseDateDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "tagId")
    private Long tagId;
    @NotNull(message = "不能为空", groups = DefaultGroup.class)
    @Schema(description = "标签名称")
    private String tagName;
    private Boolean checked;
    private String type;

}